/*******************************************************************************
  * @file                   USART.h
  * @Author:                MQjehovah                 mail:MQjehovah@hotmail.com
  * @version                1.0.0
  * @date                   2016.3.18
  * @brief                  
  ******************************************************************************
  * @attention
*******************************************************************************/
#ifndef _USART_H
#define _USART_H
/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_conf.h"
#include<string.h> 
#include<stdio.h> 
/* Definition ----------------------------------------------------------------*/
#define Debug_USART USART1
/* Exported Functions --------------------------------------------------------*/
void USART_GPIO_Config(USART_TypeDef *USARTx);
void USART_Config(USART_TypeDef *USARTx, u32 Buand);
void USART_SendChar(USART_TypeDef *USARTx, char c);
void USART_SendStr(USART_TypeDef *USARTx, char *senddata);
void USART1_IRQHandler(void);
void printNumber(USART_TypeDef *USARTx, unsigned long n, u8 base);
/*********************************END OF FILE**********************************/
#endif
